package com.ygp.jmm.ordering;

import org.openjdk.jcstress.annotations.Actor;
import org.openjdk.jcstress.infra.results.II_Result;

public class TestOrdering4Possible {
    int a;
    int b;

    @Actor
    public void actor1(II_Result r) {
        b = 1;
        r.r2 = a;
    }

    @Actor
    public void actor2(II_Result r) {
        a = 2;
        r.r1 = b;
    }
}
